package org.xhnews.constant;

import net.rim.device.api.i18n.DateFormat;
import net.rim.device.api.i18n.SimpleDateFormat;


public class Constant {	
	public final static String PATH_ROOT = "xhnews/";
	public final static String PATH_DATA = "/xhnews/data/";
	public final static String FILE_CITIES="/WeatherSupportCity.xml";
	public final static String PATH_DB = "xhnews/database/";
	public final static String URL_XML = "xinhua/sjrss2/";
	public final static String URL_WEATHER = "xinhua/weather/";
	public final static String URL_NEWSLIST = "xinhua/mobile/sj_colinfo.asp?";
	public final static String URL_CHANNELLIST = "xinhua/mobile/sj_collist.asp?";
	public final static String URL_LOGIN = "xinhua/mobile/sj_Login.asp?";
	public final static String URL_REGISTER = "xinhua/mobile/sj_Register.asp?";
	public final static String URL_CONTACT = "xinhua/mobile/sj_GroupUsers.asp?";
	public final static String URL_FORWARD = "xinhua/mobile/sj_forwardinfo.asp?";
	public final static String URL_MESSAGELIST = "xinhua/mobile/sj_forwardinfo_list.asp?";
	public final static String URL_MESSAGEVIEW = "xinhua/mobile/sj_viewinfo.asp?";
	public final static String URL_ONLINE_NEWS = "xinhua/3gweb/index.asp?";
	public final static String URL_INDEXDATA = "xhsProd/analyzer/getzs.asp?";
	public final static String URL_ONLINE_VIDEO = "xinhua/mobile/sj_colinfo.asp?fn=001005058030~016.757.XML&";
	
	public final static DateFormat DATE_FORMAT = new SimpleDateFormat(
	"yyyy-MM-dd HH:mm");
	
	public final static int RES_INVALID_NETWORK = 0;// 无效网络
	public final static int RES_REGISTRATION_SUCC = 1;// 成功注册
	public final static int RES_DISABLED = 2; // 用户被禁用
	public final static int RES_UNKNOWN = 3; // 未知
	public final static int RES_UNAUTHORIZED = 4;// 未授权
	public final static int RES_OVERDUE = 5;// 过期
	public final static int RES_REGISTER_BY_OTHER_DEVICE = 6;// 此手机号码已与其他手机绑定
	public final static int RES_CONNECTION_FAILED = 7;// 连接服务器失败
	public final static int RES_UNREGISTRATION = 8;
	public final static int RES_ALL_READY = 9;
	public final static int RES_EXIT = 10;
	public final static int RES_DB_ERROR = 11;
	public final static int RES_SERVICE_ERROR = 12;
	public final static int RES_INIT_FAILED = 13;
	
	public final static int LATEST_NEWS_LIMIT = 20;
}
